import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
export function getprofile() {
  return request({
    url: '/sys/profile',
    method: 'post'

  })
}

// 用户信息
export function getimg(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
